const DoubleEndQueue = require('./doubleEndQueue.cjs')

const queue = new DoubleEndQueue()

queue.addFromEnd(100)
queue.addFromEnd(200)
queue.addFromEnd(300)
queue.addFromEnd(400)
queue.addFromEnd(500)

console.log(queue.toString())
console.log(queue.size())

queue.removeFromEnd()

console.log(queue.toString())
console.log(queue.size())

console.log(queue.peekHead());
console.log(queue.peekEnd());